package org.desktop.web.server.locator;

import java.util.HashMap;
import java.util.Map;

import org.desktop.web.server.factory.ConfigurationFactory;

public final class ServiceLocator {

	private static Map<ServiceName, String> services = new HashMap<ServiceLocator.ServiceName, String>();

	public enum ServiceName {
		TIMESHEET_SERVICE;
	}

	static {
		services.put(ServiceName.TIMESHEET_SERVICE, ConfigurationFactory
				.getConfiguration().getString("service.timesheet.url"));

	}

	public static final String find(ServiceName serviceName) {
		return services.get(serviceName);
	}
}
